package com.quanquan.user.repository;

import com.quanquan.user.entity.ConsecutiveRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface ConsecutiveRecordRepository extends JpaRepository<ConsecutiveRecord, String>{

    @Query(value = "select * from oo_consecutive_record where user_id = ?1",nativeQuery = true)
    ConsecutiveRecord findByUserId(String userId);
}
